package com.wn.ziroom.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wn.ziroom.entity.Room;
import com.wn.ziroom.vo.*;

import java.util.List;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wangzhijia
 * @since 2023-02-23 02:27:54
 */
public interface RoomService extends IService<Room> {

    Page<Room> getRoomList(Integer num, Integer size, Condition condition
                           );

    RoomDetailVo getRoomDetail(Integer id);

    Page<EsRoomVo> getRoomListEs(Integer num, Integer size, Condition condition);

    Room add(Room room);

    List<Room> selectById(Integer id);

    List<RoomVoo> selectRoomVooById(Integer id);

    List<RoomVvo> selectRoomVvoById(Integer id);

    RoomUo selectUserById(Integer id);

    Room selectByUserId(Integer id);
}
